//
//  ChatTableViewTimeCell.swift
//  IMUIDemo
//
//  Created by tbbMacmini on 2025/3/22.
//

import UIKit

class ChatTableViewTimeCell: UITableViewCell {
    lazy var contentLable: UILabel = {
        let lb = UILabel();
        lb.text = "_"
        lb.numberOfLines = 0
        lb.textAlignment = .right;
        return lb
    }()
    
    lazy var bgView: UIView = {
        let bgView = UIView();
        bgView.backgroundColor = UIColor.lightGray;
        bgView.layer.cornerRadius = 2
        bgView.layer.masksToBounds = true
        return bgView;
    }()
    
    
    override func layoutSubviews() {
        super.layoutSubviews();
        
        contentView.addSubview(bgView);
        bgView.snp.makeConstraints { make in
            make.center.equalToSuperview();
            make.size.equalTo(CGSize(width: 160, height: 24))
        }
        
        bgView.addSubview(contentLable)
        contentLable.snp.makeConstraints { make in
            make.center.equalToSuperview();
        }
        
    }

}
